package com.nbsaas.boot.express.rest.convert;

import com.nbsaas.boot.express.data.entity.Express;
import com.nbsaas.boot.express.api.domain.request.ExpressRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 快递公司请求对象转换成实体对象
*/

public class ExpressEntityConvert  implements Converter<Express, ExpressRequest> {

    @Override
    public Express convert(ExpressRequest source) {
        Express result = new Express();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

